﻿using Maltose.MessageQueue.Publish;

namespace Maltose.MessageQueue.Extensions
{

    /// <summary>
    /// 发送短信
    /// </summary>
    public class SmsMQP
    {

        MessageQueuePublish publish;

        /// <summary>
        /// 发送短信
        /// </summary>
        public SmsMQP()
        {
            publish = new MessageQueuePublish();
        }

        /// <summary>
        /// 发送短信
        /// </summary>
        /// <param name="queue">参数</param>
        /// <returns></returns>
        public bool Send(SmsMessage queue)
        {
            return publish.SendQueueMessage("SmsMessageQueue", queue);
        }
    }

}
